<?php

namespace App\Error;

/**
 * 基础错误信息
 */
class BaseError
{
    /**
     * @var    array
     * @cnMessage   未登录
     * @enMessage   Unauthorized
     */
    const  UNAUTHORIZED = [
        "code" => 401,
        "cn"   => "账号登录状态已失效或已在其他设备登录，请重新登录",
        "en"   => "Unauthorized"
    ];

    /**
     * @var    array
     * @cnMessage   未登录
     * @enMessage   Unauthorized
     */
    const  SERVER_INTERNAL_ERROR = [
        "code" => 500,
        "cn"   => "服务器内部错误",
        "en"   => "Server internal error"
    ];

    /**
     * @var    array
     * @cnMessage   验证签名失败
     * @enMessage   invalid signature
     */
    const  INVALID_SIGNATURE = [
        "code" => 401,
        "cn"   => "验证签名失败",
        "en"   => "invalid signature"
    ];

}
